// 车队司机
import request from "@/utils/https/requests";
// 列表
export function fleetsDriverList(data: any) {
  return request({
    url: "/fleetsDriver/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddFleetsDriver(data: any) {
  return request({
    url: "/fleetsDriver/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModFleetsDriver(data: any) {
  return request({
    url: `/fleetsDriver/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function fleetsDriverDetail(id: string) {
  return request({
    url: `/fleetsDriver/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteFleetsDriver(id: string) {
  return request({
    url: `/fleetsDriver/postDelete/${id}`,
    method: "post",
  });
}
